package com.kq.servlet.kqctrl;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.PreloadListener;
import com.utils.JsonUtil;

public class getLogin extends HttpServlet
{
  public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
  {
    Map map = PreloadListener.loginInfo;
    PrintWriter out = response.getWriter();
    if (map.isEmpty())
      out.write("null");
    else {
      out.write(JsonUtil.stringify(map));
    }
    out.flush();
  }
}